﻿<Window x:Class="MainWindow" x:Name="mw1"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:s="clr-namespace:System;assembly=mscorlib"
    Title="Auto-LiMPoT - v.1.1b" Height="405" Width="525">
    <Grid>
        <Button Content="About" Height="30" Width="70" Click="ButtonAbout_Click" HorizontalAlignment="Right" VerticalAlignment="Top" Margin="20"/>
        <StackPanel Orientation="Vertical">
            <TextBlock HorizontalAlignment="Center" FontSize="20">
                <Bold>Auto-LiMPoT</Bold>
            </TextBlock>
            <TextBlock HorizontalAlignment="Center">
                <Bold>Auto</Bold>mated  <Bold>Li</Bold>quid  <Bold>M</Bold>IUI  <Bold>Po</Bold>rting  <Bold>T</Bold>ool
            </TextBlock>

            <TextBlock HorizontalAlignment="Center">
                By <Bold>Master_T</Bold>
            </TextBlock>
            
            <GroupBox Header="Input Files" Margin="3">
                <StackPanel Orientation="Vertical">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                            <RowDefinition/>
                        </Grid.RowDefinitions>
                        
                        <TextBlock Margin="3" Grid.Row="0" Grid.Column="0" Text="Last working MIUI Rom for Liquid:"/>
                        <TextBox Margin="3" Grid.Row="0" Grid.Column="1" IsReadOnly="True" Text="{Binding ElementName=mw1, Path=LiquidRomFile}"></TextBox>
                        <Button Margin="3" Grid.Row="0" Grid.Column="2" Content="..." MinWidth="40" Click="ButtonClick_SelectLiquidRom"/>

                        <TextBlock Margin="3" Grid.Row="1" Grid.Column="0" Text="N1 Rom to port:"/>
                        <TextBox Margin="3" Grid.Row="1" Grid.Column="1" IsReadOnly="True" Text="{Binding ElementName=mw1, Path=N1RomFile}"></TextBox>
                        <Button Margin="3" Grid.Row="1" Grid.Column="2" Content="..." MinWidth="40" Click="ButtonClick_SelectN1Rom"/>
                    </Grid>
                </StackPanel>
            </GroupBox>

            <GroupBox Header="Output path" Margin="3">
                <StackPanel Orientation="Vertical">
                    <Grid>
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="Auto"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="Auto"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition/>
                        </Grid.RowDefinitions>

                        <TextBlock Margin="3" Grid.Row="0" Grid.Column="0" Text="Output ROM file:"/>
                        <TextBox Margin="3" Grid.Row="0" Grid.Column="1" IsReadOnly="True" Text="{Binding ElementName=mw1, Path=OutputFile}"/>
                        <Button Margin="3" Grid.Row="0" Grid.Column="2" Content="..." MinWidth="40" Click="ButtonClick_SelectOutputPath"/>
                    </Grid>
                </StackPanel>
            </GroupBox>

            <GroupBox Header="Options" Margin="3">
                <StackPanel Orientation="Vertical">
                    
                    <CheckBox Content="Delete useless apps (torch, FM radio, etc..)" Margin="3" IsChecked="{Binding ElementName=mw1, Path=IsDeleteApps}" ToolTip="Removes from the ROM apps that don't work on the Liquid (like Torch, FM Radio, etc)"/>
                    <CheckBox Content="Sign ROM package" Margin="3" IsChecked="{Binding ElementName=mw1, Path=IsSignPackage}" ToolTip="If you don't check this the ROM will need to be flashed without sign check enabled"/>
                </StackPanel>
            </GroupBox>
            
            <GroupBox Header="Actions" Margin="3">
                <Grid>
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition/>
                        <ColumnDefinition/>
                    </Grid.ColumnDefinitions>
                    
                    <Button Margin="3" Content="Build ROM!" FontSize="20" Foreground="Green" Click="ButtonClick_BuildROM" IsEnabled="{Binding ElementName=mw1, Path=IsReady}"/>
                    <Button Margin="3" Grid.Column="1" FontSize="20" Foreground="Red" Content="Exit" Click="ButtonClick_Exit"/>
                </Grid>
            </GroupBox>
        </StackPanel>
    </Grid>
</Window>
